home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir36
/
sparkl35.zip
/
MENU.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-09-25
|
2KB
|
85 lines
@echo off
echo off
cls
echo We added this simple batch file to give you a "template" you can
echo use to create "scrolling bar" menus using Sparkle. Just run this.
echo Then view or print it to see how easy it is. You can then copy
echo this to form the basis of your own menus.
echo
pause
cls
echo Here's an example of how to create a menu using Sparkle.
:
:---- FIRST display some menu options. Here we'll use Sparkle's WINDOW
: option -- twice for some color. "-6" means EXPLODE the window.
:
sparkle -6 6 1 22 80 32 32 /
sparkle -6 7 10 20 71 79 -2 /... Main Menu ...
:
:---- SECOND, print the 4 menu options (plus Quit)
:
sparkle 5 10 31 112 /── This is option 1 ──
sparkle 5 12 31 112 /── This is option 2 ──
sparkle 5 14 31 112 /── This is option 3 ──
sparkle 5 16 31 112 /── This is option 4 ──
sparkle 5 18 31 112 /── Quit ──
:
:---- THIRD, tell Sparkle to turn this into a VERTICAL Bar menu (direction = 1).
: We use Sparkle's option #2 (bar menu). And we tell Sparkle to look for
: menu options starting at row 10, column 30 (top left) to row 18 column 53
: (bottom right). We also tell Sparkle to highlight options using color
: 15 (bright white on black).
:
sparkle 2 10 30 18 53 15 1
:
:---- If this was YOUR menu, you'd edit the following lines to do what YOU
: want to as each option is chosen.
:
If Errorlevel 88 Goto Error
If Errorlevel 27 Goto EscPressed
If Errorlevel 5 Goto 5thOption
If Errorlevel 4 Goto 4thOption
If Errorlevel 3 Goto 3rdOption
If Errorlevel 2 Goto 2ndOption
If Errorlevel 1 Goto 1stOption
Goto End
:
:Error
:
echo An error must have occurred. Possibly someone changed this and I can't
echo find or process the menu. Sorry. Check the batch file.
goto end
:
:EscPressed
:
echo You pressed Escape.
goto end
:
:1stOption
:
echo You selected the 1st option
goto end
:
:2ndOption
:
echo You selected the 2nd option
goto end
:
:3rdOption
:
echo You selected the 3rd option
goto end
:
:4thOption
:
echo You selected the 4th option
goto end
:
:5thOption
:
echo You selected the 5th option -- Quit
:
:End
: